package com.example.check.cooperative.service;

import com.example.check.cooperative.pojo.CooperativeItem;

import java.util.List;

public interface CooperativeItemService {

    List<CooperativeItem> listByTrip(Integer tripId, Integer userId);

    boolean addItem(CooperativeItem item);

    boolean updateChecked(Integer itemId, Boolean checked, Integer userId, String scope);

    boolean deleteItem(Integer itemId);

    boolean resetChecked(Integer tripId, Integer userId);

    boolean deleteByTripId(Integer tripId);
}


